﻿<%@ Page Language="C#" MasterPageFile="~/Default.master" Title="Create User Wizard Template" CodeFile="CreateUserWizardTemplate.aspx.cs" Inherits="CreateUserWizardTemplate" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Main" Runat="Server">
    <div>
      <asp:CreateUserWizard ID="Createuserwizard1" runat="server" CssClass="LoginStyle"
        CancelDestinationPageUrl="~/Default.aspx">
        <WizardSteps>
          <asp:CreateUserWizardStep ID="Createuserwizardstep1" runat="server" title="Créer votre nouveau compte">
            <ContentTemplate>
              <table border="0">
                <tr>
                  <td>
                    <table border="0" style="height: 100%; width: 100%;">
                      <tr>
                        <td align="center" colspan="2" class="TitleTextStyle">
                          <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:labels, EditProfileTitre %>" />
                        </td>
                      </tr>
                      <tr>
                        <td align="right">
                          <asp:label runat="server" associatedcontrolid="UserName" id="UserNameLabel" Text="<%$ Resources:labels, EditProfileUserName %>" />
                        </td>
                        <td>
                          <asp:TextBox runat="server" id="UserName"></asp:TextBox>
                          <asp:requiredfieldvalidator runat="server" controltovalidate="UserName" tooltip="Nom d'utilisateur est requis."
                            ID="UserNameRequired" validationgroup="Createuserwizard1" errormessage="User Name is required.">
                            *</asp:requiredfieldvalidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="right">
                          <asp:label runat="server" associatedcontrolid="Password" id="PasswordLabel" Text="<%$ Resources:labels, EditProfilePassWord %>" />
                        </td>
                        <td>
                          <asp:TextBox runat="server" textmode="Password" ID="Password" CssClass="TextBoxStyle"></asp:TextBox>
                          <asp:RequiredFieldValidator runat="server" controltovalidate="Password" tooltip="Password is required."
                            ID="PasswordRequired" validationgroup="Createuserwizard1" errormessage="Password is required.">
                            *</asp:RequiredFieldValidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="right">
                          <asp:label runat="server" associatedcontrolid="ConfirmPassword" id="ConfirmPasswordLabel" Text="<%$ Resources:labels, EditProfileConfirmPassWord %>" />
                        </td>
                        <td>
                          <asp:TextBox runat="server" textmode="Password" id="ConfirmPassword" CssClass="TextBoxStyle"></asp:textbox>
                          <asp:requiredfieldvalidator runat="server" controltovalidate="ConfirmPassword" tooltip="Confirm Password is required."
                            id="ConfirmPasswordRequired" validationgroup="Createuserwizard1" errormessage="Confirm Password is required.">
                            *</asp:requiredfieldvalidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="right">
                          <asp:label runat="server" associatedcontrolid="Email" id="EmailLabel">
                            Email:</asp:label></td>
                        <td>
                          <asp:TextBox runat="server" id="Email"></asp:TextBox>
                          <asp:requiredfieldvalidator runat="server" controltovalidate="Email" tooltip="Email is required."
                            id="EmailRequired" validationgroup="Createuserwizard1" errormessage="Email is required.">
                            *</asp:requiredfieldvalidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="right">
                          <asp:label runat="server" associatedcontrolid="Question" id="QuestionLabel" Text="<%$ Resources:labels, EditProfileQuestionSecurite %>" />
                        </td>
                        <td>
                          <asp:TextBox runat="server" id="Question"></asp:TextBox>
                          <asp:requiredfieldvalidator runat="server" controltovalidate="Question" tooltip="Security question is required."
                            id="QuestionRequired" validationgroup="Createuserwizard1" errormessage="Security question is required.">
                            *</asp:requiredfieldvalidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="right">
                          <asp:label runat="server" associatedcontrolid="Answer" id="AnswerLabel" Text="<%$ Resources:labels, EditProfileReponseSecurite %>" />
                        </td>
                        <td>
                          <asp:textbox runat="server" id="Answer"></asp:textbox>
                          <asp:requiredfieldvalidator runat="server" controltovalidate="Answer" tooltip="Security answer is required."
                            id="AnswerRequired" validationgroup="Createuserwizard1" errormessage="Security answer is required.">
                            *</asp:requiredfieldvalidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2">
                          <asp:comparevalidator runat="server" display="Dynamic" errormessage="The Password and Confirmation Password must match."
                            controltocompare="ConfirmPassword" controltovalidate="Password" id="PasswordCompare"
                            validationgroup="Createuserwizard1">
                          </asp:comparevalidator>
                        </td>
                      </tr>
                      <tr>
                        <td align="center" colspan="2" style="color: Red;">
                          <asp:literal runat="server" enableviewstate="False" id="FailureText">
                          </asp:literal>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </contenttemplate>
          </asp:CreateUserWizardStep>
          <asp:completewizardstep ID="Completewizardstep1" runat="server" title="Complete">
            <contenttemplate>
              <table border="0">
                <tr>
                  <td>
                    <table border="0" style="height: 100%; width: 100%;">
                      <tr>
                        <td align="center" colspan="2">
                          Complete</td>
                      </tr>
                      <tr>
                        <td>
                          <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources:labels, EditProfileTitre %>" />
                          Votre compte à été créé avec succès.</td>
                      </tr>
                      <tr>
                        <td align="right" colspan="2">
                          <asp:Button runat="server" validationgroup="Createuserwizard1" commandname="Continuez"
                            ID="ContinueButton" CausesValidation="False" Text="Continue" OnClick="ButtonContinue_OnClick" />
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </ContentTemplate>
          </asp:CompleteWizardStep>
        </WizardSteps>
      </asp:CreateUserWizard>
    </div>
</asp:Content>
